package logs

Import Path
	github.com/K-Phoen/grabana/logs (on go.dev)

Dependency Relation
	imports 5 packages, and imported by 2 packages

Involved Source Files logs.go
Package-Level Type Names (total 4)
/* sort by: | */
DedupStrategy represents a deduplication strategy. func Deduplication(dedup DedupStrategy) Option const Exact const None const Numbers const Signature
Logs represents a logs panel. Builder *sdk.Panel func New(title string, options ...Option) (*Logs, error)
Option represents an option that can be used to configure a logs panel. func CommonLabels() Option func DataSource(source string) Option func Deduplication(dedup DedupStrategy) Option func Description(content string) Option func Height(height string) Option func HideLogDetails() Option func Links(panelLinks ...links.Link) Option func Order(order SortOrder) Option func PrettifyJSON() Option func Repeat(repeat string) Option func RepeatDirection(direction sdk.RepeatDirection) Option func Span(span float32) Option func Time() Option func Transparent() Option func UniqueLabels() Option func WithLokiTarget(query string, options ...loki.Option) Option func WrapLines() Option func New(title string, options ...Option) (*Logs, error) func github.com/K-Phoen/grabana/row.WithLogs(title string, options ...Option) row.Option
SortOrder represents a sort order. func Order(order SortOrder) Option const Asc const Desc
Package-Level Functions (total 18)
CommonLabels displays the "common labels".
DataSource sets the data source to be used by the panel.
Deduplication sets the deduplication strategy.
Description annotates the current visualization with a human-readable description.
Height sets the height of the panel, in pixels. Example: "400px".
HideLogDetails disables the log details view for each log row.
New creates a new logs panel.
Order display results in descending or ascending time order. The default is Descending, showing the newest logs first. Set to Ascending to show the oldest log lines first.
PrettifyJSON pretty prints all JSON logs. This setting does not affect logs in any format other than JSON.
Repeat configures repeating a panel for a variable
RepeatDirection configures repeating vertical or horizontal
Span sets the width of the panel, in grid units. Should be a positive number between 1 and 12. Example: 6.
Time displays the "time" column. This is the timestamp associated with the log line as reported from the data source.
Transparent makes the background transparent.
UniqueLabels displays the "unique labels" column, which shows only non-common labels.
WithLokiTarget adds a loki query to the graph.
WrapLines enables line wrapping.
Package-Level Constants (total 6)
const Asc SortOrder = "Ascending"
const Desc SortOrder = "Descending"
const Exact DedupStrategy = "exact"
const None DedupStrategy = "none"
const Numbers DedupStrategy = "numbers"
const Signature DedupStrategy = "signature"